{include file="public/header" /}
<link rel="stylesheet" href="/static/admin/builder/css/base.css" media="all">
<style>
    html {
        background-color: #f2f2f2 !important;
    }
    .layui-form-item {
        margin-bottom: 0 !important;
    }
    .underline{
        text-decoration: underline;color: #00a2d4
    }
    tr th:last-child {
        border-right: 0 !important;
    }
    .layui-card-body {

        padding: 10px 1px!important;
    }
</style>
<body>

<div class="layui-fluid layui-anim-fadein">
    <div class="layui-card">

        <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">

            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                    <div class="nav_search">
                        {include file="form/items/search" type='1' /}
                    </div>

                    <div class="layui-card-body">

                        <div style="padding-bottom: 10px;">
                            {foreach name="top_buttons" item="vo"}
                            {if $vo.title == '导出'}
                            <a class="{$vo.class}" data-size="{$vo.width?$vo.width:''},{$vo.height?$vo.height:''}" data-url="{:url('export',array_merge($Request.param,$extra_map))}" onclick="{$vo.onclick}">
                                <i class="layui-icon {$vo.icon}"></i>{$vo.title}
                            </a>
                            {else}
                            <a class="{$vo.class}" data-size="{$vo.width?$vo.width:''},{$vo.height?$vo.height:''}" data-url="{$vo.href?$vo.href:''}" onclick="{$vo.onclick}">
                                <i class="layui-icon {$vo.icon}"></i>{$vo.title}
                            </a>
                            {/if}
                            {/foreach}
                        </div>

                        <table class="layui-table" lay-data="{page:true, url:'{:url('getList', array_merge($Request.param,$extra_map))}',
            id:'formId',totalRow: {$totalRow},'cellMinWidth':80,limit:20,limits:[20,40,60,80,100] , size: 'sm',even:true,id:'form_table'}" lay-filter="table">
                            <thead>
                            <tr>
                                {foreach name="columns" item="vo"}
                                {if isset($vo.format) && $vo.format == 'password'}
                                {else}
                                <?php $data = json_encode($vo);?>
                                <th lay-data="{$data}">{$vo.title}</th>
                                {/if}
                                {/foreach}
                            </tr>
                            </thead>
                        </table>
                        <script type="text/html" id="barDemo">
                            <div class="layui-btn-container">
                                <a class="layui-btn layui-btn-sm right_button" lay-event="edit,{:url('order/edit',['name'=>'Order_index'])},订单详情,1600,1200">详情</a>
                                {{#  if(d.statusRaw > 1){ }}
                                {{#  if(d.statusRaw == 2){ }}
                                <a class="layui-btn layui-btn-sm right_button" lay-event="deliver,{:url('order/deliver')},发货,1000,900">发货</a>
                                {{#  } else { }}
                                <a class="layui-btn layui-btn-sm right_button" lay-event="deliver,{:url('order/deliver')},发货详情,1000,900">发货详情</a>
                                {{#  } }}
                                {{#  } else { }}
                                <a class="layui-btn layui-btn-sm right_button layui-btn-danger" lay-event="delete,{:url('order/delete')},删除">删除</a>
                                {{#  } }}
                            </div>
                        </script>
                    </div>
                </div>

            </div>
        </div>
    </div>
</div>

</body>
{include file="public/footer" /}
{foreach name="js_url" item="vo"}
<script type="text/javascript" src="/static/admin/form/js/{$vo}.js"></script>
{/foreach}
</html>